package com.dingwen.payment.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * payment
 *
 * @author dingwen
 * 2021.07.13 13:50
 */
@RestController
@RequestMapping("/payment")
public class PaymentController {

    /**
     * 服务器端口
     */
    @Value("${server.port}")
    private Integer serverPort;

    /**
     * zookeeper 侧首
     *
     * @return {@link String}
     */

    @GetMapping("/zookeeper")
    public String paymentZookeeper() {
        return serverPort + "\t" + UUID.randomUUID();
    }



}
